package com.nebula.salary.common.constants;

/**
 * 常量类
 *
 * @author codex
 * @since 2022-01-31
 */
public class Const {
    
    public static final String NEED_LOGIN = "用户未登录，请登录";
    
    public static final String ROOT_SORT_ID = "f_nav_sort";
    
    public static final String CHILDREN_SORT_ID = "c_nav_sort";
    
    public static final Long PAGE = 1L;
    
    public static final Long SIZE = 10L;
    
    /**
     * 用户有权限的菜单key
     */
    public static final String MENU_ROLE_KEY = "menu_role_key:";
    
    /**
     * 用户信息key
     */
    public static final String LOGIN_USER_KEY = "login_user_key:";
    
    /**
     * 登录用户token key
     */
    public static final String LOGIN_TOKEN_KEY = "login_token:";
    
    /**
     * 工资统计key
     */
    public static final String ANALYZE_RESULT_KEY = "analyze_result_key:";
    
    /**
     * 密码最小长度
     */
    public static final Integer PASSWORD_MIN_LENGTH = 6;
    
    /**
     * 密码最大长度
     */
    public static final Integer PASSWORD_MAX_LENGTH = 18;
    
    /**
     * 入参未设置性别时 默认性别 保密
     */
    public static final String GENDER_SECRET = "2";
    
    /**
     * 注册用户默认角色 普通用户
     */
    public static final Integer DEFAULT_ROLE = 1003;
    
    /**
     * 用户登录就有访问权限
     */
    public static final String ROLE_LOGIN = "ROLE_LOGIN";
    
    public static final String ROLE_SECURITY_PREFIX = "ROLE_";
    
    /**
     * 默认编码
     */
    public static final String DEFAULT_CHARACTER_ENCODING = "UTF-8";
    
    public static final String CONTENT_TYPE_JSON = "application/json";
    
    public static final Double MAX_SALARY = 99999999.99;
    
    public static final String TYPE_INSERT = "insert";
    
    public static final String TYPE_UPDATE = "update";
    
    public static final Integer CURRENT_YEAR_SALARY_MAX_COUNT = 12;
    
    /**
     * 备注文字最长限度
     */
    public static final int MAX_REMARK_LENGTH = 64;
    
    /** 是否唯一返回校验码 */
    public final static String UNIQUE = "0";
    public final static String NOT_UNIQUE = "1";
    
    /** 是否越权 */
    public final static String UNAUTHORIZED = "0";
    public final static String NOT_UNAUTHORIZED = "1";
    
    public static final Integer MIN_AGE = 0;
    public static final Integer MAX_AGE = 999;

	public static final Integer HOST_ROLE_ID = 1001;
}
